<!DOCTYPE html>
<html>
<head>
  <title>Gerente</title>
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
</head>
<body>
	<div class="body-wrapper">
		<h1>Our manager</h1>
		<% if user_signed_in? %>
			<li id="menu">
				<ul><%=link_to "overview", graphs_path, :class => params[:controller] == 'graphs' ? "selected" : ""  %></ul>
				|
				<ul><%=link_to "hosts", hosts_path, :class => %W(hosts oids).include?(params[:controller]) ? "selected" : "" %></ul>
			</li>

			<% if notice %>
				<p class="notice"><%= notice %></p>
			<% end %>
			<% if alert %>
				<p class="alert"><%= alert %></p>
			<% end %>
      <script>
        $('.notice').fadeOut(5000)
        $('.alert').fadeOut(10000)
      </script>

			<div id="user_nav">
				Welcome <%= current_user.email %>
				<%= link_to "Sign out", destroy_user_session_path, :method => :delete %>
			</div>
		<% end %>



		<%= yield %>
	</div>

</body>
</html>
